package br.com.opengti.webforum.ws.domain.impl;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Transient;

import br.com.opengti.webforum.ws.infra.dao.WebForumDomainSupport;

/**
 * @author Felipe Balbino <felipe@opengti.com.br>
 * @author Gabriel Cardelli <cardelli@opengti.com.br>
 */
@Entity
public class Papel {

	@Transient private WebForumDomainSupport webForumDomainSupport;
	
	@Id
	@GeneratedValue
	private Long id;
	
	private String nome;
	
	private String descricao;
	
	@ManyToMany(mappedBy="papeis")
	private List<Regra> regras;
	
	@OneToMany(mappedBy="papel")
	private List<Usuario> usuarios;

}
